package org.jkyec.lambda.basic;

import java.util.function.Consumer;

public class ConsumerTest {

	public static void main(String[] args) {
		Consumer<Double> doubleFunction = (amount) -> { System.out.println("Now amount is: " + amount); };
		
		doubleFunction.accept(58d);
		
		
		Consumer<String> forestFunction = (boardcaster) -> { System.out.println(boardcaster + " says: tommorrow is a rainy day."); };
		
		forestFunction.accept("A popular artist");
	}

}
